<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>实名认证</title>
<link type="image/x-icon" rel="shortcut icon" href="/images/user/favicon.png" >
<link type="text/css" href="/css/user/users/safety_information.css" rel="stylesheet"/>
<link type="text/css" href="/css/user/users/global_users.css" rel="stylesheet"/>
<link type="text/css" rel="stylesheet" href="/css/dialog.min.css">
<link type="text/css" rel="stylesheet" href="/css/user/users/company_authentication.css">
<script type="text/javascript" src="/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="/js/dialog.min.js"></script>
<script type="text/javascript" src="/js/bstdialog.min.js"></script>
<script type="text/javascript" src="/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/js/ajaxfileupload.js"></script>
<script type="text/javascript" src="/js/place.js"></script>
</head>
<body>
<div class="Wrapper">
	<!--会员中心头部-->
<jsp:include page="../../../common/member/memberHeader.jsp"></jsp:include>
     <!--会员中心头部-->
    <!--会员中心中间部分-->
    <div class="uc_bd mt20 mb20 ">
    	<div class="uc_layer">
            <div class="account">
                <!--会员信息左侧-->
                <jsp:include page="../../../common/member/member_information/left.jsp"></jsp:include>
            	<!--会员信息左侧-->
                <!--基本资料右侧-->
                <div class="member_r fr">
                	<div class="uitopb uitopb_border">
                    	<div class="lm-t tabs">会员信息>企业实名认证</div>
                    	<input type="hidden" name="id" id="id" value="${identify.id}">
                    	<input type="hidden" name="state" id="state" value="${identify.state}">
                        <div class="uc_content order">
                        	<h3 style="color: red;">
	                        	<c:if test="${identify.state != 1 && identify.state != 2 && identify.state != 3}">
		                        	填写企业信息
		                        </c:if>
                        		<c:if test="${identify.state == 1}">
	                        	正在审批中，请耐心等待！
	                        	</c:if>
	                        	<c:if test="${identify.state == 2}">
	                        	审批退回，请重新提交正确的信息！
	                        	</c:if>
	                        	<c:if test="${identify.state == 3 }">
	                        	已认证成功！
	                        	</c:if>
	                        </h3>
                        	<div class="form_field">
                        		<dl class="cle">
                        			<dt>
                        				<span class="field_tip icon_sprite icon_important">企业名称：</span>
                        			</dt>
                        			<dd>
                        				<input type="text" name="company_name" value="${identify.companyName }" />
                        				<!-- <div class="assisstive_tip">
                        					<p>若企业名称里有生僻字，请点此打开生僻字库进行选择</p>
                        				</div> -->
                        			</dd>
                        		</dl>
                        		<dl class="cle">
                        			<dt>
                        				<span class="field_tip icon_sprite icon_important">企业执照注册号：</span>
                        			</dt>
                        			<dd>
                        				<input type="text" name="license_code" placeholder="营业执照注册号"  value="${identify.bnessLicenseRegistNum }" />
                        			</dd>
                        		</dl>
                        		<dl class="address_linkage cle">
                        			<dt>
                        				<span class="field_tip icon_sprite icon_important">企业执照所在地：</span>
                        			</dt>
                        			<dd>
                        				<div>
                        				  <select name="provinceCode" onchange="cityByProvince(this.value);" style="width:110px;height:30px;" >
					               	  	    <c:if test="${province !=null }">
					               	  	    	<option value="${province.provinceCode }">${province.provinceName }</option>
					               	  	    	<c:if test="${identify.state == 2}">
					               	  	    		<c:forEach items="${provinceList}" var="province">
							            	  	    	<option value="${province.provinceCode }">${province.provinceName }</option>
							               	  	    </c:forEach>
					               	  	    	</c:if>
					               	  	    </c:if>
					               	  	    <c:if test="${identify.bnessLicenseRegistNum ==null }"> 
						               	  	    <option value="">省份</option>
						               	  	    <c:forEach items="${provinceList}" var="province">
						            	  	    <option value="${province.provinceCode }">${province.provinceName }</option>
						               	  	    </c:forEach>
						               	  	</c:if>
					           	  	      </select>
					               	  	  <select name="cityCode" id="cname" onchange="areaByCity(this.value);" style="width:110px;height:30px;">
					               	  	    
					               	  	    <c:if test="${city!=null}"><option value="${city.cityCode }">${city.cityName }</option></c:if>
                                        	<c:if test="${city==null}"><option value="">市级</option></c:if>
					           	  	      </select>
					               	  	  <select name="areaCode" id="area" class="select-box" style="width:115px;height:30px;">
					               	  	    <c:if test="${area!=null}"><option value="${area.areaCode }">${area.areaName }</option></c:if>
                                        	<c:if test="${area==null}"><option value="">区县</option></c:if>
					           	  	      </select> 
                        				</div>
                        				<div class="assisstive_tip">
                        					<p>如果找不到所在的城市，可以选择所在地区或者上级城市</p>
                        				</div>
                        			</dd>
                        		</dl>
                        		<dl class="business_date cle">
                        			<dt>
                        				<span class="field_tip icon_sprite icon_important">营业期限：</span>
                        			</dt>
                        			<dd class="business_time">
                        				<input class="wdpk_date" type="text" name="business_stime" value="<fmt:formatDate value="${identify.bnessLicenseStartDate}" pattern="yyyy-MM-dd"/>"  onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
                        				<span>—</span>
                        				<c:if test="${identify.bnessLicenseEndDate != '' && identify.bnessLicenseEndDate != null }">
                       						<input class="wdpk_date" type="text" name="business_etime" value="<fmt:formatDate value="${identify.bnessLicenseEndDate}" pattern="yyyy-MM-dd"/>"  onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
                       					</c:if>
                       					<c:if test="${identify.bnessLicenseEndDate == '' || identify.bnessLicenseEndDate == null }">
                       						<input class="wdpk_date disabled" type="text" name="business_etime" value=""  onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
                       					</c:if>
                        				<span>|</span>
                        				<label>
                        					<c:if test="${identify.bnessLicenseEndDate != '' && identify.bnessLicenseEndDate != null }">
                        						<input class="business_type" type="checkbox" name="business_type"  />
                        					</c:if>
                        					<c:if test="${identify.bnessLicenseEndDate == '' || identify.bnessLicenseEndDate == null }">
                        						<input class="business_type" type="checkbox" name="business_type" checked/>
                        					</c:if>
                        					长期
                        				</label>
                        				
                        				<div class="assisstive_tip">
                        					<p>若证件有效期为长期，请勾选长期。</p>
                        				</div>
                        			</dd>
                        		</dl>
                        		<dl class="cle">
                        			<dt>
                        				<span class="field_tip icon_sprite icon_important">常用地址：</span>
                        			</dt>
                        			<dd>
                        				<input type="text" name="common_address" placeholder="常用地址" value="${identify.bnessLicenseAddress}"  />
                        			</dd>
                        		</dl>
                        		<dl class="cle">
                        			<dt>
                        				<span class="field_tip icon_sprite icon_important">联系电话：</span>
                        			</dt>
                        			<dd>
                        				<input type="text" name="phone_num"  value="${identify.comyContactUserTel }" />
                        				<div class="assisstive_tip">
                        					<p>如：0571-88123123，分机号码可不填写</p>
                        				</div>
                        			</dd>
                        		</dl>
                        		<dl class="cle">
                        			<dt>
                        				<span class="field_tip icon_sprite icon_important">营业执照副本扫描件：</span>
                        			</dt>
                        			
                        			<dd>
                        				<div  class="uploader">
                        					<input type="file" id="auth_license"  name="auth_license" value="${authLicense.attachId}"/>
                        					<input type="hidden" id="auth_license_id" value="${authLicense.attachId}">
                        					<label id="auth_license_name" >${authLicense.attachName}</label>
                        				</div>
                        				
                        				<div class="assisstive_tip">
                        					<dl>
                        						<dt>证件要求</dt>
                        						<dd>必须为清晰彩色元件扫描件或数码照，图片大小不超过4M</dd>
                        						<dd>必须在有效期内且年检章齐全（当年成立的公司无年检章）</dd>
                        						<dd>必须为中国大陆工商局颁发</dd>
                        					</dl>
                        				</div>
                        			</dd>
                        		</dl>
                        		<dl class="cle">
                        			<dt>
                        				<span>加盖公章的副本：</span>
                        			</dt>
                        			<dd>
                        				<div class="uploader">
                        					<input type="file" id="duplicate_license" name="duplicate_license"value="${duplicateLicense.attachId}"/>
                        					<input type="hidden" id="duplicate_license_id" value="${duplicateLicense.attachId}">
                        					<label id="duplicate_license_name" >${duplicateLicense.attachName} </label>
                        				</div>
                        				<div class="assisstive_tip">
                        					<dl>
                        						<dt>证件要求</dt>
                        						<dd>必须为清晰彩色元件扫描件或数码照，图片大小不超过4M</dd>
                        						<dd>必须在有效期内且年检章齐全（当年成立的公司无年检章）</dd>
                        						<dd>必须为中国大陆工商局颁发</dd>
                        					</dl>
                        				</div>
                        			</dd>
                        		</dl>
                        		
                        		<dl class="cle">
                        			<dt>
                        				<span>组织机构代码：</span>
                        			</dt>
                        			<dd>
                        				<input type="text" name="organization_code"  value="${identify.organizationCode }" />
                        			</dd>
                        		</dl>
                        		<dl class="cle">
                        			<dt>
                        				<span>营业范围：</span>
                        			</dt>
                        			<dd>
                        				<input type="text" name="business_range" value="${identify.bnessLicenseRange }"  />
                        			</dd>
                        		</dl>
                        		<dl class="cle">
                        			<dt>
                        				<span>注册资金：</span>
                        			</dt>
                        			<dd>
                        				<input type="text" name="start_fund" value="${identify.registerMoney }"  />
                        			</dd>
                        		</dl>
                        		<dl class="cle">
                        			<dt>
                        				<span>传真：</span>
                        			</dt>
                        			<dd>
                        				<input type="text" name="fax" placeholder="传真"  value="${identify.companyFax }" />
                        			</dd>
                        		</dl>
                        		<c:if test="${identify.state == 0 || identify.state == 2 || identify.state == null }">
	                        		<!-- <dl class="authcode cle">
	                        			<dt>
	                        				<span class="field_tip icon_sprite icon_important">校验码：</span>
	                        			</dt>
	                        			<dd>
	                        				<div>
	                        					<input type="text" name="authcode" />
		                        				<span><img src="" title="校验码"/></span>
		                        				<a>看不清，换一张</a>
	                        				</div>
	                        				<div class="assisstive_tip">
	                        					<p>请输入右侧图中的内容</p>
	                        				</div>
	                        			</dd>
	                        		</dl> -->
	                        	</c:if>
                        		<div class="sumbitbox">
                        			<c:if test="${identify.state == 0 || identify.state == 2 || identify.state == null }">
                        				<a href="javascript:void(0);" class="btn">提交</a>
                        			</c:if>
                        		</div>
                        		
                        	</div>
                      	</div>
                    </div>
                </div>
                <!--会员中心右侧-->
                <div class="cl"></div>
			</div>
      	</div>
    </div>
    <!--会员中心中间部分-->
    <!---------------------------------footer------------------------------------>
  	<jsp:include page="../../../common/footer.jsp"/>
  	<!---------------------------------footer结束------------------------------------>
</div>
<script type="text/javascript" src="/js/user/users/member_center/member_information/company_authentication.js"></script>
</body>
</html>
